package com.wfk.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户积分明细表
 * </p>
 *
 * @since 2019-01-07
 */
@TableName("t_point_details")
public class PointDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

        /**
     * 流水号
     */
         private String paycode;

        /**
     * 用户id
     */
         private Integer cid;

        /**
     * 操作类型见枚举类
     */
         private Integer typeid;

        /**
     * 1收入 0支出
     */
         private Integer isout;

        /**
     * 上一次金宝
     */
         private BigDecimal original;

        /**
     * 本次操作金宝
     */
         private BigDecimal cost;

        /**
     * 最后金宝
     */
         private BigDecimal last;

        /**
     * 创建时间
     */
         private Date createtime;

        /**
     * 修改时间 用来做乐观锁
     */
         private Date updatetime;

        /**
     * 备注
     */
         private String remark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPaycode() {
        return paycode;
    }

    public void setPaycode(String paycode) {
        this.paycode = paycode;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Integer getIsout() {
        return isout;
    }

    public void setIsout(Integer isout) {
        this.isout = isout;
    }

    public BigDecimal getOriginal() {
        return original;
    }

    public void setOriginal(BigDecimal original) {
        this.original = original;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public BigDecimal getLast() {
        return last;
    }

    public void setLast(BigDecimal last) {
        this.last = last;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "PointDetails{" +
        "id=" + id +
        ", paycode=" + paycode +
        ", cid=" + cid +
        ", typeid=" + typeid +
        ", isout=" + isout +
        ", original=" + original +
        ", cost=" + cost +
        ", last=" + last +
        ", createtime=" + createtime +
        ", updatetime=" + updatetime +
        ", remark=" + remark +
        "}";
    }
}
